import {defineStore} from 'pinia'
import { ref } from 'vue'

export const userMenusStore = defineStore('userMenus',()=>{
        const menus=ref([]);
        const setMenus=(newMenus)=>{
            menus.value=newMenus
        }
        const removeMenus=()=>{
            menus.value=[]
        }
        return {
            menus,setMenus,removeMenus
        }
    },
    {
        persist:true
    }//参数持久化
)